package ch3.condtional;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(ConditionConifg.class);
        ListService listService =context.getBean(ListService.class);
        System.out.println(context.getEnvironment().getProperty("os.name")+"系统命令列表为:"+listService.showListCmd());
        context.close();
    }
}
